<?php
/**
* Page to do the original application setup
*
* @author       Fabrice Douteaud <clearbudget@douteaud.com>
* @package      framework
* @access       public
*/

/***********************************************************************

  Copyright (C) 2008  Fabrice douteaud(clearbudget@douteaud.com)

    This file is part of ClearBudget.

    ClearBudget is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    ClearBudget is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with ClearBudget.  If not, see <http://www.gnu.org/licenses/>.

************************************************************************/
//prevent direct access
if(!defined('ENGINEON')) die('Direct access forbidden');

?>
<div class="title"><?php echo $keys->pageTitle_setupAccountSettings; ?></div><br/>
<input type="hidden" name="action" value="setup">
<table class="tableReport" onMouseOver="javascript:trackTableHighlight(event, '#E6EAE9');" onMouseOut="javascript:highlightTableRow(0);">
<caption><?php echo $keys->pageTitle_setupAccountSettingsTitle; ?></caption>
<tr>
  <th><?php echo $keys->text_settingName; ?></th>
  <th><?php echo $keys->text_settingInput; ?></th>
</tr>
  <tr><td><?php echo $keys->text_login; ?></td>
  <td><input type="text" value="" id="username"></td></tr>
<tr><td><?php echo $keys->text_password; ?></td>
  <td><input type="password" value="" id="password"></td></tr>
<tr><td><?php echo $keys->text_secureAccess; ?></td>
  <td><select name="secureAccess" id="secureAccess">
  <option value='1'><?php echo $keys->text_yes; ?></option>
  <option value='0'><?php echo $keys->text_no; ?></option>
  </select></td></tr>
<tr><td><span style="color:purple;"><?php echo $keys->text_language; ?>*</span></td>
<td><select id="language"><option value='NULL'><?php echo $keys->link_pickInTheList; ?></option>
<?php
$languages = explode(',', AVAILABLELANGUAGE);
foreach($languages as $lang) {
  $key = 'link_SetLanguage'.strtoupper($lang);
  echo '<option value="'.$lang.'" ';
  if($keys->getLang() == $lang) echo 'selected';
  echo '>'.$keys->$key.'</option>';
  }
?>
  </select></td></tr>
<tr><td><span style="color:purple;"><?php echo $keys->text_currency; ?>*</span></td>
  <td><select id="currency"><option value='NULL'><?php echo $keys->link_pickInTheList; ?></option>
<?php
$currencies = explode(',', AVAILABLECURRENCY);
foreach($currencies as $currency) {
  $key = 'text_'.$currency;
  echo '<option value="'.$currency.'">'.$keys->$key.'</option>';
  }
?>
  </select></td></tr>
</table>
<div style="text-align:center">
<a href="#" setupFormSubmit="true"><?php echo $keys->link_CreateAccount; ?></a>
</div><br/>
</form>